function loadGetServer(url, param, callback) {
    param.url = $("#current_url_value").val();
    $.ajax({
        type: "post",
        url: url,
        data: param,
        dataType: "json",
        timeout: 100000,
        async: false,
        success: function (data) {
            if (data.code == -1) {
                alert(data.msg);
                window.location.href = "/admin/login.html";
            }
            callback(data);
        },
        error: function (xhr, type) {
            alert('系统错误');
        }

    })
}

function GetQueryString(name) {
    var reg = new RegExp("(^|&)" + name + "=([^&]*)(&|$)", "i");
    var r = window.location.match(reg);
    if (r != null) {
        return unescape(r[2])
    }
    return null
}

function GetQueryStringByLink(link,name) {
    var splitElement = link.split('?')[1];
    var reg = new RegExp("(^|&)" + name + "=([^&]*)(&|$)", "i");
    var match = splitElement.match(reg);
    if (match != null) {
        return unescape(match[2])
    }
    return null
}